package com.asap.demo.utils;

/**
 * 
 * @author wangwei
 *
 */
public final class FieldName {
	
	private FieldName() {}
	
	public static final String RULE_RELATION = "relation";
	public static final String RULE_TEMPLATE = "configTemplate";
	public static final String RULE_RELATION_CONDITION = "condition";
	public static final String RULE_RELATION_RELATIONCONDITION = "relationCondition";
	public static final String RULE_RELATION_RELATIONTIMEFIELD = "relationTimeField";
	public static final String RULE_RELATION_RELATIONTIMEWINDOW = "relationTimeWindow";
	public static final String RULE_RELATION_RELATIONTSECIMEWINDOW = "relationSecTimeWindow";
	public static final String RULE_RELATION_RELATIONTIMEUNIT = "relationTimeUnit";
	public static final String RULE_RELATION_RELATIONSlidingWindow = "relationSlidingWindow";

	public static final String RULE_RELATIONS = "relations";
	public static final String RULE_RELATIONS_CONDITION = "condition";
	public static final String RULE_RELATIONS_COMPAREFUNC = "compareFunc";
	public static final String RULE_RELATIONS_COMPAREVALUE = "compareValue";
	
	public static final String RULE_RELATIONCONDITION = "relationCondition";
	public static final String RULE_RELATIONCONDITION_SPLITTAG = ",";
	
	public static final String RULE_STAT = "stat";
	public static final String RULE_STAT_TIMEFIELD = "timeField";
	public static final String RULE_STAT_GROUPTYPE = "groupType";
	
	//Fields used by group statistics
	public static final String RULE_GROUPFIELD = "groupField";
	public static final String RULE_TIMEFIELD = "timeField";
	public static final String RULE_TIMEWINDOW = "timeWindow";
	public static final String RULE_SECTIMEWINDOW = "secTimeWindow";
	public static final String RULE_TIMEUNIT = "timeUnit";
	public static final String RULE_SUMFIELD = "sumField";
	public static final String RULE_GROUP_TYPE = "groupType";
	public static final String RULE_STAT_VALUE = "stateValue";
	public static final String RULE_DISTINCT_FIELD = "distinctField";
	public static final String RULE_GROUP_FILED_DEAMON = "groupFieldDeamon";
	public static final String RULE_COMPAREFUNC = "compareFunc";
	public static final String RULE_COMPAREVALUE = "compareValue";
	
	public static final String RULE_RULEID = "ruleId";
	public static final String RULE_RULENAME = "ruleName";
	public static final String ALARM_NAME="ALARM_NAME";
	public static final String SOURCE="SOURCE";
	public static final String RULE_INPUTEVENTRULES = "inputEventRules";
	public static final String RULE_INPUTEVENTRULES_IDENTITY = "identity";
	
	public static final String RULE_INPUTEVENTRULES_CONFIGEVENT = "configEvent";
	public static final String RULE_CONFIGTYPE = "configtype";
	
	public static final String RULE_INPUTEVENTRULES_CONFIGNAME = "configName";
	public static final String RULE_INPUTEVENTRULES_RELATION = "relation";
	public static final String RULE_INPUTEVENTRULES_RELATION_SPLITTAG = ",";
	
	public static final String RULE_STATISTIC = "stat";
	
	public static final String RULE_FILTERS = "filters";
	public static final String RULE_FILTERS_ATTRNAME = "attrName";
	public static final String RULE_FILTERS_COMPAREVALUEALL = "compareValueAll";
	public static final String RULE_FILTERS_COMPAREFUNC = "compareFunc";
	
	public static final String RULE_ALARM = "alarm";
	public static final String RULE_OUTPUTRULES = "outputRules";
	
	//public static final String EVENT_EVENTTYPE = "eventType_s";
	//public static final String EVENT_DEVICETYPE = "deviceType_s";
	//public static final String EVENT_UUID = "uuid";
	
	//public static final String EVENT_RULEID = "ruleId";
	//public static final String EVENT_PARENT = "parentUuid_s";
	public static final String EVENT_WINDOWCOUNT = "windowCount";
	
	public static final String ALARM_TYPE = "alarmType";
	//public static final String ALARM_LEVEL = "riskLevel_s";
	public static final String ALARM_GRADE = "alarmGrade";
	public static final String ALARM_CONTEXT = "alarmContext";
	public static final String ALARM_TIME = "alarmTime";
	public static final String ALARM_PHASE = "alarmPhase";
	public static final String ALARM_FOCUS = "alarmFocus";
	public static final String ALARM_MAIL = "alarmMail";
	public static final String ALARM_MESSAGE = "alarmMessage";
	
	public static final String ENGINE_RULEID = "SCENE_ID";
	//public static final String PROCESS_TIME = "processTime_dt";
	//public static final String LOG_TIME = "logTime_dt";
	//命中的规则编号集合
	public static final String HIT_RULEID = "hitRuleIds";
	//循环次数
	public static final String CYCLE_INDEX = "cycleIndex";

	public static final String TAG_TYPE="TAGS";

	public static final String RULE_TJ_COUNT="RULE_TJ_COUNT";

	public static final String EVENT_ONE_TYPE="EVENT_ONE_TYPE";
	public static final String EVENT_TWO_TYPE="EVENT_TWO_TYPE";
	public static final String EVENT_THREE_TYPE="EVENT_THREE_TYPE";
	public static final String DEVICE_PARENT_TYPE="DEVICE_PARENT_TYPE";
}
